<script setup lang="ts">
import { reactive } from 'vue';
const props = defineProps<{
    ujt: any;
}>();
const { $fn } = props.ujt;
const rankingsData: any = reactive({
    score: 55,
    user: 'asai',
});
function submit() {
    $fn.api['webserver']
        .apiPost(
            '/api/asaijson/manage/rankings/?path=./webdata/rankings.json',
            rankingsData
        )
        .then((res: any) => {
            console.log(666.1002, res);
        });
}
</script>

<template>
    <input type="number" v-model="rankingsData.score" />
    <input type="text" v-model="rankingsData.user" />
    <button @click="submit()">提交</button>
</template>

<style scoped lang="scss"></style>
